def calculate_scores(n):

    scores = []


    for _ in range(n):
        score = float(input("请输入一个分数: "))
        scores.append(score)


    highest_score = max(scores)
    lowest_score = min(scores)
    average_score = sum(scores) / n


    print(f"最高分: {highest_score:.1f}")
    print(f"最低分: {lowest_score:.1f}")
    print(f"平均分: {average_score:.1f}")



n = int(input("请输入分数的个数n（n<=100）: "))
if 0 < n <= 100:
    calculate_scores(n)
else:
    print("输入的分数个数不符合要求，请确保n在1到100之间。")